<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>

<s:layout-render name="/newjsp.jsp">
    <s:layout-component name="hlavicka">
        <f:message key="nadpis.home"/>
    </s:layout-component>

    <s:layout-component name="telo">
        <f:message key="key.invitation" />
        <ul>
            <s:useActionBean beanclass="pneuservis.frontend.web.IndexActionBean" var="actionBean"/>
            <c:forEach items="${actionBean.tyres}" var="tyre">
                <li>
                    <div id="tyre">
                        <b><c:out value="${tyre.manufacturer}"/></b>
                        <c:out value="${tyre.rimSize}R/"/>
                        <c:out value="${tyre.width}/"/>
                        <c:out value="${tyre.profile}/"/>
                        <c:out value="${tyre.season}"/>
                        <br/>
                        <f:message key="key.price"/> : <c:out value="${tyre.price}"/> Eur
                        <s:link event="buy" beanclass="pneuservis.frontend.web.IndexActionBean"><s:param name="buytyre" value="${tyre.id}"/><f:message key="key.buy"/></s:link>
                    </div>
                    </li>
            </c:forEach>
        </ul>
        
    </s:layout-component>
</s:layout-render>
